Skip to main content
Version: 5.x.x

UseTrackedStateProps


import { UseTrackedStateProps } from "@hyper-fetch/react"

Description

Defined in helpers/use-tracked-state/use-tracked-state.types.ts:17

Preview

type UseTrackedStateProps<T> = {
deepCompare: boolean | typeof isEqual;
defaultCacheEmitting: boolean;
dependencyTracking: boolean;
dispatcher: Dispatcher;
initialData: NullableType<Partial<ExtractAdapterReturnType<T>>>;
logger: LoggerType;
request: T;
}

Structure

{
deepCompare: boolean | typeof isEqual;
defaultCacheEmitting: boolean;
dependencyTracking: boolean;
dispatcher: Dispatcher;
initialData: T | NegativeTypes;
logger: Record<LoggerLevelType, (message: LoggerMessageType, ...extra: LoggerMessageType[]) => void>;
request: T;
}